From: Jason Rumney Date: Mon, 6 Aug 2007 11:03:35 +0000 (+0000) Subject: (vc-call): Add doc string. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~17501 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=47c2b95320f4bc40d568d39353830a8f9fcc0f37;p=emacs.git (vc-call): Add doc string. --- diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index 09001e59691..d38bc000465 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el @@ -279,7 +279,10 @@ It is usually called via the `vc-call' macro." (t (apply f args))))) (defmacro vc-call (fun file &rest args) - ;; BEWARE!! `file' is evaluated twice!! + "A convenience macro for calling VC backend functions. +Functions called by this macro must accept FILE as the first argument. +ARGS specifies any additional arguments. FUN should be unquoted. +BEWARE!! `file' is evaluated twice!!" `(vc-call-backend (vc-backend ,file) ',fun ,file ,@args)) (defsubst vc-parse-buffer (pattern i)